<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path=request.getContextPath();
	String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<title>Insert title here</title>

<link rel="stylesheet" type="text/css" href="css/table.css" />

<script type="text/javascript">
	function c(){
		document.getElementById("xinxi").value="";
	}
	function cc(){
		document.getElementById("xinxi").value="请输入要查找的用户信息";
	}
</script>
</head>
<body>
	<div class="info">
		<strong>查找制定的用户信息:</strong>
		<input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block">
		<a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()"> 搜索</a>
	</div>
	<br/>
	<table class="gridtable">
		<tr class="table-head">
			<th>订单号</th>
			<th>用户名</th>
			<th>真实姓名</th>
			<th>起始站</th>
			<th>终点站</th>
			<th>发车的时间</th>
			<th>订单日期</th>
			<th>票价</th>
		</tr>
		<c:forEach var="orderrecord" items="${BookingInfo }">
			<tr>
				<td>${orderrecord.orderrecordid }</td>
				<td>${orderrecord.user.username}</td>
				<td>${orderrecord.user.userrealname }</td>
				<td>${orderrecord.ticket.route.startStation }</td>
				<td>${orderrecord.ticket.route.destStation }</td>
				<td>${orderrecord.ticket.route.timeid }</td>
				<td>${orderrecord.ticket.ticketdata }</td>
				<td>${orderrecord.ticket.route.price * orderrecord.ticketnum }</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>